import React, { FC, PropsWithChildren } from 'react'

interface IframeViewParam {
  title: string,
  src: string,

}
const IframeView: FC<IframeViewParam> = (props: PropsWithChildren<IframeViewParam>) => {
  const { title, src } = props
  return (
    <div className="iframe-view">
      <iframe src={src} title={title} style={{ width: '100%', height: '100vh' }} />
    </div>
  )
}

export default IframeView
